package com.yangzehan.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName xcx_classification
 */
@TableName(value ="xcx_classification")
public class XcxClassification implements Serializable {
    /**
     * 分类id
     */
    @TableId(type = IdType.AUTO)
    private Integer classificationId;

    /**
     * 分类名称
     */
    private String classificationValue;

    /**
     * 分类标题图片
     */
    private String classoficationSrc;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 分类id
     */
    public Integer getClassificationId() {
        return classificationId;
    }

    /**
     * 分类id
     */
    public void setClassificationId(Integer classificationId) {
        this.classificationId = classificationId;
    }

    /**
     * 分类名称
     */
    public String getClassificationValue() {
        return classificationValue;
    }

    /**
     * 分类名称
     */
    public void setClassificationValue(String classificationValue) {
        this.classificationValue = classificationValue;
    }

    /**
     * 分类标题图片
     */
    public String getClassoficationSrc() {
        return classoficationSrc;
    }

    /**
     * 分类标题图片
     */
    public void setClassoficationSrc(String classoficationSrc) {
        this.classoficationSrc = classoficationSrc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        XcxClassification other = (XcxClassification) that;
        return (this.getClassificationId() == null ? other.getClassificationId() == null : this.getClassificationId().equals(other.getClassificationId()))
            && (this.getClassificationValue() == null ? other.getClassificationValue() == null : this.getClassificationValue().equals(other.getClassificationValue()))
            && (this.getClassoficationSrc() == null ? other.getClassoficationSrc() == null : this.getClassoficationSrc().equals(other.getClassoficationSrc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClassificationId() == null) ? 0 : getClassificationId().hashCode());
        result = prime * result + ((getClassificationValue() == null) ? 0 : getClassificationValue().hashCode());
        result = prime * result + ((getClassoficationSrc() == null) ? 0 : getClassoficationSrc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", classificationId=").append(classificationId);
        sb.append(", classificationValue=").append(classificationValue);
        sb.append(", classoficationSrc=").append(classoficationSrc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}